import http from '../axios'

export default {
  getList(paramObj) {
    return http('get', '/api/manager/getList', paramObj);
  },
  add(managerForm) {
    return http('post', '/api/manager/add', managerForm);
  },
  update(managerForm) {
    return http('post', '/api/manager/update', managerForm);
  },
  delete(id) {
    return http('post', '/api/manager/delete', { id: id });
  },
  getDetail(id) {
    return http('get', '/api/manager/getDetail', { id: id });
  },
  setFrozen(id, status) {
    return http('post', '/api/manager/setFrozen', { id: id, status: status });
  },
  getRewardLogList(paramObj) {
    return http('get', '/api/manager/getRewardLogList', paramObj);
  },
  balanceReward(id) {
    return http('post', '/api/manager/balanceReward', { id: id });
  },
  getAllNormal() {
    return http('get', '/api/manager/getAllNormal');
  },
  getQRcode(id) {
    return http('get', '/api/wxQRcode/getQRcode', { managerId: id });
  },
  downloadQRcode(imgPath) {
    return http('get', '/api/export/qrcode', { imgPath: imgPath });
  }
}